/**
 * 版权所有 (C), 2019-2019, XXX有限公司
 * 项目名：com.company.study.dsa.linkedlist
 * 文件名: QueueLinkedList
 * 日期: 2019/6/18 14:38
 * 说明:
 */
package com.company.study.dsa.linkedlist;

/**
 * 使用双端链表实现队列
 *
 * @author Anbang713
 * @create 2019/6/18
 */
public class QueueLinkedList {
    private DoublePointLinkedList dp;

    public QueueLinkedList() {
        dp = new DoublePointLinkedList();
    }

    public void insert(Object data) {
        dp.addTail(data);
    }

    public void delete() {
        dp.deleteHead();
    }

    public boolean isEmpty() {
        return dp.isEmpty();
    }

    public int getSize() {
        return dp.getSize();
    }

    public void display() {
        dp.display();
    }
}